<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <h1>404</h1>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在。</p>
      <button class="btn" @click="goHome">返回首页</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "NotFound",
  methods: {
    goHome() {
      this.$router.push("/");
    }
  }
};
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.not-found-content {
  text-align: center;
  padding: 20px;
}

.not-found-content h1 {
  font-size: 72px;
  color: #dc3545;
  margin-bottom: 20px;
}

.not-found-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.not-found-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}
</style>
